package com.example.demo.web.vo;

import org.springframework.beans.BeanUtils;

import com.example.demo.sys.service.bo.UserProfileBO;

import lombok.Data;

@Data
public class UserProfileVO {
	private Long id;
    private Long userId;
    private String avatar;
    private String nickname;
    private String desc;
    private String org;
    private String title;
    private String dept;
    private String[] tags;
    private String location;
    private String email;
    private Long createdAt;
    private Long updatedAt;
    
    public static UserProfileVO convert(UserProfileBO item) {
    	if (item == null) {
            return null;
        }
    	UserProfileVO result = new UserProfileVO();
        BeanUtils.copyProperties(item,result);
        
        return result;
    }
}
